package cn.wolfcode.shop.member.mapper;

import cn.wolfcode.shop.member.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    @Select("select * from t_user where id = #{id}")
    public User get(Long id);

    @Select("select * from t_user")
    List<User> list();
}
